//
//  LYQCompanyNatureViewController.m
//  ZCProject
//
//  Created by 崔明燃 on 2016/12/13.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#import "LYQCompanyNatureViewController.h"

#import "LYQCompanyNatureTableViewCell.h"

static NSString *companyNatureCellIdentifier = @"companyNatureCellIdentifier";

@interface LYQCompanyNatureViewController ()<UITableViewDelegate, UITableViewDataSource>

@end

@implementation LYQCompanyNatureViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.listTableView.delegate = self;
    self.listTableView.dataSource = self;
    [self.listTableView registerClass:[LYQCompanyNatureTableViewCell class] forCellReuseIdentifier:companyNatureCellIdentifier];
}

#pragma mark - load Data
- (void)loadData {
    NSDictionary *param = @{@"moduleid":@"2",
                            @"action":@"reg",
                            };
    
    [NetRequest PostWithRequestStyle:NetRequestHostTypeStyleDefault withAPI:@"app/app.php" param:param success:^(id response) {
        
    } error:^(NSError *error) {
        
    }];
}

#pragma mark - tableView DataSource and Delegate
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 5;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 100.f;
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return 40.f;
}

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    return .1f;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    LYQCompanyNatureTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:companyNatureCellIdentifier];
    
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
